home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / ahmstanc / _setup.1 / AHMTDBStickyLabel.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-05  |  2.4 KB  |  73 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'AHMTDBStickyLabel.pas' rev: 3.00
  6.  
  7. #ifndef AHMTDBStickyLabelHPP
  8. #define AHMTDBStickyLabelHPP
  9. #include <AHMSControls.hpp>
  10. #include <DBCtrls.hpp>
  11. #include <Db.hpp>
  12. #include <Windows.hpp>
  13. #include <Dialogs.hpp>
  14. #include <Forms.hpp>
  15. #include <Messages.hpp>
  16. #include <Controls.hpp>
  17. #include <StdCtrls.hpp>
  18. #include <Classes.hpp>
  19. #include <SysInit.hpp>
  20. #include <System.hpp>
  21.  
  22. //-- user supplied -----------------------------------------------------------
  23.  
  24. namespace Ahmtdbstickylabel
  25. {
  26. //-- type declarations -------------------------------------------------------
  27. enum TAHMPosition { pLeft, pRight, pTop, pBottom };
  28.  
  29. class DELPHICLASS TAHMDBStickyLabel;
  30. class PASCALIMPLEMENTATION TAHMDBStickyLabel : public Dbctrls::TDBText 
  31. {
  32.     typedef Dbctrls::TDBText inherited;
  33.     
  34. private:
  35.     Ahmscontrols::TAHMAboutSControlStr FAboutStr;
  36.     Controls::TWinControl* FAttachTo;
  37.     TAHMPosition FPosition;
  38.     int FSpace;
  39.     void *FDefAttachedProc;
  40.     void *FAttachedInstance;
  41.     bool FRealigning;
  42.     void __fastcall SetSpace(int Value);
  43.     void __fastcall SetAttachTo(Controls::TWinControl* Value);
  44.     void __fastcall SetPosition(TAHMPosition Value);
  45.     void __fastcall AttachedWndProc(Messages::TMessage &Message);
  46.     
  47. protected:
  48.     void __fastcall CheckForControl(void);
  49.     virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
  50.         );
  51.     virtual void __fastcall WndProc(Messages::TMessage &Message);
  52.     
  53. public:
  54.     __fastcall virtual TAHMDBStickyLabel(Classes::TComponent* AOwner);
  55.     __fastcall virtual ~TAHMDBStickyLabel(void);
  56.     void __fastcall ReAlign(void);
  57.     
  58. __published:
  59.     __property Ahmscontrols::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
  60.     __property TAHMPosition Position = {read=FPosition, write=SetPosition, default=0};
  61.     __property Controls::TWinControl* AttachToControl = {read=FAttachTo, write=SetAttachTo};
  62.     __property int Space = {read=FSpace, write=SetSpace, default=5};
  63. };
  64.  
  65. //-- var, const, procedure ---------------------------------------------------
  66.  
  67. }    /* namespace Ahmtdbstickylabel */
  68. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  69. using namespace Ahmtdbstickylabel;
  70. #endif
  71. //-- end unit ----------------------------------------------------------------
  72. #endif    // AHMTDBStickyLabel
  73.